package com.hrs.common.exception;

import com.hrs.common.result.CodeMsg;
import lombok.Getter;

/**
 * @author 计算机系 ITAEM 摆渡人
 * @description
 * @date 2022/11/19 21:38
 */
@Getter
public class GlobalException extends RuntimeException{
    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg){
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }
}
